import React from 'react';
import {
    HashRouter,//   决定路由模式
    Switch,
    Route
} from 'react-router-dom';
import Login from '../component/logreg/Login';
import Header from '../component/Header';
import registered from '../component/logreg/registered';

class Router extends React.Component {
    render() {
        return (
            <HashRouter>
                <Switch>
                    <Route path="/registered" component={registered}></Route>
                    <Route path="/login" component={Login}></Route>
                    <Route path="/" component={Header}></Route>
                </Switch>


            </HashRouter>
        )
    }
}
export default Router